// 云函数列表
const functionMap = {
  version: 1,
  mixin(key, name, target, { desc, group }) {
    functionMap[key] = {
      type: "function",
      key,
      name,
      desc,
      target,
      group,
    };
  },
};

//白码基础
functionMap.mixin("common", "白码基础API", "/api/libs/common/index.js", {
  desc: "白码基础API",
  group: "common",
});

//企业微信
functionMap.mixin("wxwork", "企业微信API", "/api/libs/wxwork/index.js", {
  desc: "功能说明:对接企业微信内部应用API",
  group: "wechat",
});

//钉钉
functionMap.mixin("dingtalk", "钉钉API", "/api/libs/dingtalk/index.js", {
  desc: "功能说明:钉钉内部开发API",
  group: "dingtalk",
});

export default functionMap;
